package com.golxen.framework.netty.websocket.shaker;


import com.golxen.framework.netty.websocket.codec.AgentWebSocketEncoder00;
import io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder;
import io.netty.handler.codec.http.websocketx.WebSocketFrameDecoder;
import io.netty.handler.codec.http.websocketx.WebSocketFrameEncoder;
import io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker00;

public class Handshaker00 extends WebSocketServerHandshaker00 {

    public Handshaker00(String webSocketURL, String subprotocols, int maxFramePayloadLength) {
        super(webSocketURL, subprotocols, maxFramePayloadLength);
    }

    @Override
    protected WebSocketFrameDecoder newWebsocketDecoder() {
        return new WebSocket00FrameDecoder(maxFramePayloadLength());
    }

    @Override
    protected WebSocketFrameEncoder newWebSocketEncoder() {
        return new AgentWebSocketEncoder00();
    }
}
